-- GENERATED SPELL FOR [Trainee Sinthar] --


function spell0_18628(pUnit, Event) --@Stealth,Self--
pUnit:FullCastSpellOnTarget(32615,pUnit)
pUnit:RegisterEvent('Sorts_18628', 615, 1)
end

function Sorts_18628(pUnit, Event)
local choix_sorts_18628 = math.random(0, 0)
if choix_sorts_18628 == 0 then
pUnit:RegisterEvent('spell0_18628', 1, 1)
end
end

function mob18628_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18628', math.random(1500, 3000), 1)
end

function mob18628_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18628_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18628_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18628, 1, 'mob18628_Action')
RegisterUnitEvent(18628, 2, 'mob18628_Leave')
RegisterUnitEvent(18628, 3, 'mob18628_Kill')
RegisterUnitEvent(18628, 4, 'mob18628_Die')
